function DialogAddTransition(doc, container, width, height, user, date, options, data) {
  this._doc = doc;
  this._container = container;
  this._user = user;
  this._date = date;
  this._options = options;
  this._data = data;
  this._unique = MiscUtils.unique();
  this._createElements();
  this._gui = AbsDialogAddTransition.gui(this._unique);
};

DialogAddTransition.prototype._createElements = function() {
  var table, tr, td;
  
  table = document.createElement('table');
  table.cellPadding = 0;
  table.cellSpacing = 0;
  table.style.width = '460px';
  table.style.marginTop = '10px';
  this._container.appendChild(table);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.fontWeight = 'bold';
  td.style.width = '70px';
  td.style.height = '27px';
  td.appendChild(document.createTextNode('Name'));
  
  td = tr.insertCell(-1);
  var input = DOMUtils.createInput('', '', 'text', '', null);
  input.id = this._unique + '_name_text';
  input.style.width = '396px';
  td.appendChild(input);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.fontWeight = 'bold';
  td.style.width = '70px';
  td.style.height = '27px';
  td.appendChild(document.createTextNode('Source'));
  
  td = tr.insertCell(-1);
  var input2 = document.createElement("select");
  input2.id = this._unique + '_source_select';
  input2.style.width = '400px';
  input2.style.height = '22px';
  td.appendChild(input2);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.fontWeight = 'bold';
  td.style.width = '70px';
  td.style.height = '27px';
  td.appendChild(document.createTextNode('Target'));
  
  td = tr.insertCell(-1);
  var input3 = document.createElement("select");
  input3.id = this._unique + '_target_select';
  input3.style.width = '400px';
  input3.style.height = '22px';
  td.appendChild(input3);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.fontWeight = 'bold';
  td.style.width = '70px';
  td.style.height = '27px';
  td.style.paddingRight = '4px';
  td.style.whiteSpace = 'nowrap';
  td.appendChild(document.createTextNode('User Type'));
  
  td = tr.insertCell(-1);
  var input4 = document.createElement("select");
  input4.id = this._unique + '_userType_select';
  input4.style.width = '400px';
  input4.style.height = '22px';
  td.appendChild(input4);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.fontWeight = 'bold';
  td.style.width = '70px';
  td.style.height = '27px';
  td.style.paddingRight = '4px';
  td.appendChild(document.createTextNode('Day'));
  
  td = tr.insertCell(-1);
  var input5 = DOMUtils.createInput('', '', 'text', '', null);
  input5.id = this._unique + '_day_text';
  input5.style.width = '396px';
  td.appendChild(input5);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.colSpan=2;
  td.style.height = '32px';
  td.style.verticalAlign = 'bottom';
  td.style.textAlign = 'center';
  var add = DOMUtils.createInput('', '', 'button', 'Add', null);
  add.id = this._unique + '_add_button';
  add.className = "button";
  td.appendChild(add);
  var cancel = DOMUtils.createInput('', '', 'button', 'cancel', null);
  cancel.id = this._unique + '_cancel_button';
  cancel.className = "button";
  td.appendChild(cancel);
};